package com.dawnling.mvvmdemo.demo2;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;

import com.dawnling.mvvmdemo.R;
import com.dawnling.mvvmdemo.databinding.ActivityMvvmBinding;

public class MvvmActivity extends AppCompatActivity {

    private ActivityMvvmBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = DataBindingUtil.setContentView(this, R.layout.activity_mvvm);
        MvvmModule mvvmModule = new MvvmModule(this, "1123");
        binding.setViewMoudle(mvvmModule);
    }
}
